<?php

class factory{

	//静态函数
	public static function gethandle($handleid){
		$handlearr=array(
				0=>"null",
				1=>"Loghandle",
				2=>"Regchehandle",
				3=>"Reghandle",
				4=>"Ubike",
				5=>"Urider",
				6=>"Uequip",
				7=>"Umission",
				8=>"Overload",
				9=>"Mission",
				10=>"Saishi",
				11=>"Overcheck",
				12=>"Overcoin",
				13=>"Gongao",
				14=>"Ushoprider",
				15=>"Ushopbike",
				16=>"Ushopequip",
				17=>"Chongzhi",
				18=>"Shopbiker",
				19=>"Shopbike",
				20=>"Shopequip",
				21=>"Newloghandle",
				22=>"Chongding",
				23=>"Changepwd"
		);

		$classname=$handlearr[$handleid];
		require $classname.".php";
		return new $classname;
	}
}

?>